<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	'Login',
);
?>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
    'htmlOptions' => array(
        'class' => 'row-fluid'
    )
)); ?>

	<!--<p class="note">Fields with <span class="required">*</span> are required.</p>

	<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model,'username'); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
		<p class="hint">
			Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
		</p>
	</div>

	<div class="row rememberMe">
		<?php echo $form->checkBox($model,'rememberMe'); ?>
		<?php echo $form->label($model,'rememberMe'); ?>
		<?php echo $form->error($model,'rememberMe'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Login'); ?>
	</div>-->

    <div class="navbar">
        <div class="navbar-inner">
            <h6><i class="font-user"></i>Login</h6>
            <!--<div class="nav pull-right">
                <a href="#" class="dropdown-toggle just-icon" data-toggle="dropdown"><i class="font-cog"></i></a>
                <ul class="dropdown-menu pull-right">
                    <li><a href="#"><i class="font-plus"></i>Register</a></li>
                    <li><a href="#"><i class="font-refresh"></i>Recover password</a></li>
                    <li><a href="#"><i class="font-cog"></i>Settings</a></li>
                </ul>
            </div>-->
        </div>
    </div>
        <div class="control-group">
            <label class="control-label">Nombre de Usuario</label>
            <div class="controls">
                <?php echo $form->textField($model,'username', array('class' => 'span12', 'placeholder' => 'nombre de usuario')); ?>
                <?php echo $form->error($model,'username'); ?></div>
        </div>

        <div class="control-group">
            <label class="control-label">Password</label>
            <div class="controls">
                <?php echo $form->passwordField($model,'password', array('class' => 'span12', 'placeholder' => 'password')); ?>
                <?php echo $form->error($model,'password'); ?></div>
        </div>

        <div class="control-group">
            <div class="controls">
                <?php echo $form->checkBox($model,'rememberMe', array('class' => 'style', 'checked' => 'checked')); ?>
                <?php echo $form->label($model,'rememberMe', array('class' => 'checkbox inline')); ?>
                <?php echo $form->error($model,'rememberMe'); ?></div>
        </div>

        <div class="login-btn">
            <?php echo CHtml::submitButton('Login', array('class' => 'btn btn-info btn-block btn-large')); ?></div>

<?php $this->endWidget(); ?>
</div><!-- form -->
